<?php /* Smarty version 2.6.26, created on 2018-07-05 14:45:00
         compiled from D:%5Cwww%5Cvweb/admin%5Ctemplates/index/panel.html */ ?>
<?php $_smarty_tpl_vars = $this->_tpl_vars;
$this->_smarty_include(array('smarty_include_tpl_file' => "index/header.html", 'smarty_include_vars' => array()));
$this->_tpl_vars = $_smarty_tpl_vars;
unset($_smarty_tpl_vars);
 ?>
<style type="text/css"> 
body{ background:#f8f8f8; width:100%; padding:0; } 

.main{ padding:0; margin:0; position:absolute; }
.desc{ width:100%; padding-bottom:10px;  float:left;}
 
/**/
.lft{ margin-right:320px; padding:10px; }
.mbox{ width:100%; background:#fff; margin-bottom:10px; border-bottom:1px solid #f2f2f2; float:left;}
.mbox .nm{ width:100%; float:left; }
.mbox .nm span{ padding:10px 0 5px 15px; font-size:16px; float: left; }
.mbox .con{ width:100%; float:left; }
.mbox .con ul{ width:100%; padding:0 0 12px 0; float:left; }
.mbox .con ul li{ width:100%; padding:5px 0; float:left; }
.mbox .con ul li a{ padding:0 0 0 15px;  }
.mbox .oneBox{ width:120px; padding:10px 0 30px; float:left; }
.mbox .oneBox span{ width:120px; text-align:center;  float:left;}
.mbox .oneBox span:first-child{ font-size:36px; color:#E34A2E; font:tahoma,arial,'Hiragino Sans GB','\5b8b\4f53',sans-serif; }
.mbox .oneBox span:last-child{ color:#666; } 

.rit { width:310px; height:300px; top:0; margin:0; padding:10px 10px 0 0; position:absolute; right:0; float:right; }
.mbox .desc{ padding:5px 0 5px 0;} 
.mbox .desc span{ padding-left:15px; float: left; }

.upgrade{ width:100%; padding:10px 0 10px 0; float:left;}
.upgrade a{ padding:3px 15px; border:1px solid #ddd; background:#f8f8f8; border-radius:1px; float:left; }
.care{ width:100%; padding:0 0 20px 0; float:left;}
.care span{ width:100%; color: #999999; padding:5px 0 0 0; float:left; }

.upgrade{ padding:10px 0 10px 15px;}
.upgrade span{ padding:4px 30px 0 0; float:left; }
.upgrade a{ margin-right:5px; float:left; }
.upgrade p{ line-height:22px; }
a.update_question{ float:right; margin-right:30px; }

</style>
</head> 
<body> 
<div class="main"> 	
	<div class="lft">
		<div class="mbox">
			<div class="nm"><span>今日统计</span></div>
			<div class="con">
				<div class="oneBox"> 
					<span><?php echo $this->_tpl_vars['count']['usernum']; ?>
</span>
					<span>会员新增</span>
				</div> 
				<div class="oneBox">
					<span><?php echo $this->_tpl_vars['count']['goods_num']; ?>
</span>
					<span>今日下单</span>
				</div>
				<div class="oneBox"> 
					<span><?php echo $this->_tpl_vars['count']['spnum']; ?>
</span>
					<span>店铺新增</span>
				</div>
				<div class="oneBox"> 
					<span><?php echo $this->_tpl_vars['count']['withdraw']; ?>
</span>
					<span>今日提现</span>
				</div>
			</div>
		</div>
		<?php if ($this->_tpl_vars['install_status']): ?> 
			<div class="notice">
				<i><img src="<?php echo $this->_tpl_vars['__APP__']; ?>
public/images/notice.png" width="20"/></i>
				<span>为了你的安全，请及时删除根目录下install.php安装文件，防止重复安装。</span>
			</div>
		<?php endif; ?>
		<div class="mbox"> 
			<div class="con" style="padding:10px 0;"> 
				<div class="upgrade">
					<p>如果你有自己更改程序，请勿对程序进行更新，不然很有可能会覆盖掉你修改过的，特此提示。</p>
					<p>更新过程中，请勿关闭浏览。linux用户，请确保要覆盖的文件目录为可写。</p> 
				</div> 
			</div>
		</div> 
		
	</div>
	<div class="rit">
		<div class="mbox">
			<div class="nm"><span>环境信息</span></div> 
			<div class="con" style="height:150px;">   
				<div class="desc"><span>系统时间： 	<?php echo $this->_tpl_vars['info']['time']; ?>
</span></div> 
				<div class="desc"><span>PHP版本： 	<?php echo $this->_tpl_vars['info']['php_version']; ?>
</span></div>
				<div class="desc"><span>MYSQL版本：	<?php echo $this->_tpl_vars['info']['mysql_version']; ?>
</span></div>
				<div class="desc"><span>IP地址： 	<?php echo $this->_tpl_vars['info']['get_ip']; ?>
</span></div>
				<div class="desc"><span>可用空间： 	<?php echo $this->_tpl_vars['info']['disk']['free_space']; ?>
</span></div> 
			</div>	
		</div>
		
		<div class="mbox">
			<div class="nm"><span>最新动态</span></div> 
			<div class="con">   
				<ul class="uqcms_news">正在加载中...</ul>
			</div>	
		</div>	
	</div>	
	 
</div> 
</body>
</html>
<script type="text/javascript"> 
$(function(){ 
	$.get("?m=upgrade&a=get_version",function(data){
		$(".upajax").html(data);
	}); 
	$(".update_project").click(function(){ 
		$.getJSON('?m=upgrade&a=version_status',function(data){
			if(data.error == '0'){ 
				$('.upajax').html(data.msg); 
				if($('a.a_pro_update').length == '0'){
					$('.update_project').after('<a href="?m=upgrade&a=version_edit" class="a_pro_update">更新程序</div>');
				}
			}else{
				$('.upajax').html(data.msg); 
			}
		}); 
	}); 
	
	// 新闻
	$.getJSON("?a=apinews",function(data){
		var con = '';
		$.each(data, function(k,v){ 
			con += '<li><a href="'+v.link+'" target="_blank">'+v.title+'</a></li>';
		});
		$(".uqcms_news").html(con);
	}); 
}); 
</script>
 